package com.cai.dao.repository.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.cai.dao.mapper.UserMapper;
import com.cai.dao.repository.IUserRepository;
import com.cai.entity.DO.User;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Repository;

/**
 * @Title: IUserRepositoryImpl
 * @Author RuoLi
 * @Package com.cai.dao.repository.impl
 * @Date 2024/1/12 10:19
 * @description:
 */
@Repository
public class IUserRepositoryImpl extends ServiceImpl<UserMapper, User> implements IUserRepository {
    @Autowired
    private UserMapper userMapper;
    @Override
    public String getRoleByUsername(String username) {
        return userMapper.getRoleByUsername(username);
    }
}
